package com.university.report.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.university.report.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jinondo
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user_info")
@ToString
public class UserInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * the realName of the member
     */
    private String realName;

    /**
     * the type of your identification certificate.
     */
    private String idType="身份证";

    private String idNumber;

    /**
     * identity catecory
     */
    private String identityCate="学生";

    private String university="东莞理工学院";

//    private String campusRegion;

    private String department;

    private String address;

    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp birthday;

    /**
     * 是否被锁定
     */
    private Integer locked;
    /**
     * 今天上报打卡状态
     * 0-未打卡  1-已打卡
     */
    private Integer reportStatus;

}
